﻿<navigation:Page x:Class="GranitePackageSystem.Views.Packaging.Request" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:GranitePackageSystem_FileUploader="clr-namespace:GranitePackageSystem.FileUploader"
           d:DesignWidth="640" d:DesignHeight="480" MaxWidth="1024"
           Title="Request Page" Unloaded="Page_Unloaded" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid x:Name="LayoutRoot" Background="{x:Null}" MaxWidth="1024">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="333*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="450*" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.ColumnSpan="3" Name="txtLandingHeader" Text="" TextAlignment="Center" FontSize="20" Margin="10,50,10,5" />
        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top" Width="100" HorizontalAlignment="Center">
            <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Packaging/RequestForm" TargetName="ContentFrame" Content="Request Form" Background="#FF0097FC" MinWidth="78" Foreground="#FF0097FC" />
        </StackPanel>
        
        <StackPanel Grid.Column="1" Grid.Row="1" Name="stackPanel1" Margin="10" Background="White" Grid.ColumnSpan="2">
            <Button Name="btnStartRequest" Content="New Request" Width="100" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="10" Click="btnStartRequest_Click" />
            <sdk:TreeView Height="Auto" Name="treeViewSoftware" Width="Auto" HorizontalAlignment="Left" Visibility="Collapsed" BorderBrush="{x:Null}" SelectedItemChanged="treeViewSoftware_SelectedItemChanged">
                <sdk:TreeView.ItemTemplate>
                    <sdk:HierarchicalDataTemplate ItemsSource="{Binding ChildFNodes}">
                        <StackPanel>
                            <TextBlock Text="{Binding Name}" />
                        </StackPanel>
                    </sdk:HierarchicalDataTemplate>
                </sdk:TreeView.ItemTemplate>
            </sdk:TreeView>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Selected Install Item:" Margin="10" Name="labelInstallItem" Visibility="Collapsed" VerticalAlignment="Center" />
                <TextBox Text="No Item Selected" Name="boxInstallItem" Margin="10" Visibility="Collapsed" IsReadOnly="True" Width="Auto" BorderBrush="{x:Null}" Background="{x:Null}" />
            </StackPanel>
            <Border BorderBrush="#FFDEDEDE" Name="borderPackageDetails" Visibility="Collapsed">
                <StackPanel Name="panelPackageDetails" Visibility="Collapsed" Margin="10">
                    <StackPanel Orientation="Horizontal">
                        <StackPanel>
                            <TextBlock Text="Software Name:" Margin="10" VerticalAlignment="Center" Height="23"/>
                            <TextBlock Text="Software Version:" Margin="10" VerticalAlignment="Center" Height="23" />
                            <TextBlock Text="Software Manufacturer:" Margin="10" VerticalAlignment="Center" Height="23" />
                            <TextBlock Text="Comments:" Margin="10" VerticalAlignment="Center" Height="23" />
                            <TextBlock Text="Install Command:" Margin="10" VerticalAlignment="Center" Height="23" />
                        </StackPanel>
                        <StackPanel>
                            <TextBox Text="" Name="boxPackageName" Margin="10" Width="Auto" MinWidth="200" Height="23" />
                            <TextBox Text="" Name="boxPackageVersion" Margin="10" Width="Auto" MinWidth="200" Height="23" />
                            <TextBox Text="" Name="boxPackageComments" Margin="10" Width="Auto" MinWidth="200" Height="23" />
                            <TextBox Text="" Name="boxPackageManufacturer" Margin="10" Width="Auto" MinWidth="200" Height="23" />
                            <TextBox Text="" Name="boxInstallCommand" Margin="10" Width="Auto" MinWidth="200" Height="23" />
                        </StackPanel>
                        <StackPanel>
                            <Button Name="btnPackageNameHelp" Content="?" Height="23" Margin="10" />
                            <Button Name="btnPackageVersionHelp" Content="?" Height="23" Margin="10"  />
                            <Button Name="btnPackageManufacturerHelp" Content="?" Height="23" Margin="10" />
                            <Button Name="btnPackageCommentsHelp" Content="?" Height="23" Margin="10"  />
                            <Button Name="btnInstallComandHelp" Content="?" Height="23" Margin="10"  />
                        </StackPanel>
                    </StackPanel>
                </StackPanel>
            </Border>
        </StackPanel>
        
        <Border BorderBrush="Silver" BorderThickness="1" Grid.RowSpan="4" Grid.ColumnSpan="3" Name="border1">
        </Border>
    </Grid>
</navigation:Page>
